package system

import (
	"github.com/gin-gonic/gin"
	"new_club_recruitment/api"
)

type WeChatPayRouter struct {
}

func (w *WeChatPayRouter) InitWeChatPayRouter(Router *gin.RouterGroup) {
	systemApi := api.ApiGroupApp.SystemApiGroup.WechatPay
	sysRouter := Router.Group("system")
	{
		sysRouter.POST("/close", systemApi.CloseOrder)
		sysRouter.POST("/prepay", systemApi.Prepay)
		sysRouter.GET("/order", systemApi.QueryOrderById)
		sysRouter.GET("/outTrade", systemApi.QueryOrderByOutTradeNo)
		sysRouter.POST("/refund", systemApi.Create)
		sysRouter.POST("isRefund", systemApi.QueryByOutRefundNo)
	}
}
